package com.wman.lib;

import android.os.Environment;

import com.wman.sheep.common.application.AbsAppConfig;

import java.io.File;

/**
 * 应用相关配置项
 */

public class AppConfig extends AbsAppConfig {
    private final static String APP_CONFIG = "config";

    public static boolean isDebug = false;

    /**
     * 微信应用AppId
     */
    public final static String WX_APPID = "wx4d1e9b757f98653a";

    /**
     * API版本
     */
    private static final String API_VERSION = "v1";
    /**
     * 服务器地址
     */
    private static final String BETA_SERVER_HEADER = "";
    private static final String ALPHA_SERVER_HEADER = "https://fenxiao.fangyibao.cn/client/api/";
    public static final String SERVER_HEADER = ALPHA_SERVER_HEADER + API_VERSION;

    /**
     * EVENT_BUS EVENT_CODE
     */
    public static final int EVENT_WX_RESP_CODE = 10;//微信授权成功通知

    /**
     * 允许选择图片最大数
     */
    public static final int MAX_IMG_COUNT = 9;
    /**
     * 分页 每页的数量
     */
    public static final int LIMIT = SAMPLE_LIMIT;

    public final static String DEFAULT_CACHE_DIR = "youcai";

    // 存放图片的路径
    private final static String STORAGE_PATH =
            Environment.getExternalStorageDirectory()
                    + File.separator
                    + DEFAULT_CACHE_DIR
                    + File.separator;

    // 存放图片的路径
    public final static String SAVE_IMAGE_PATH = STORAGE_PATH + "image" + File.separator;

    // 存放视频的路径
    public final static String VIDEO_IMAGE_PATH = STORAGE_PATH + "video" + File.separator;

    // 默认存放文件下载的路径
    public final static String DEFAULT_SAVE_FILE_PATH = STORAGE_PATH + "download" + File.separator;
}